import {
  getUser
} from '@/stores/useUser'
export default {
  install(app) {
    app.directive('isteacher', {
      mounted(el) {
        const user = getUser()
        if (user.type !== '老师') {
          el.remove()
        }
      }
    });
    
    app.directive('isstudent', {
      mounted(el) {
        const user = getUser()
        if (user.type !== '学生') {
          el.remove()
        }
      }
    });

  }
}